package slef.xchen;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 转盘每一格存储的内容
 *
 * @author xchen
 * @date 2019-09-18 9:38
 */
public class Slot<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private List<T> dataList = new ArrayList<>();

    public void add(T data) {
        dataList.add(data);
    }

    public void reset(String mapName, String key) {
        DataHub.delete(mapName, key);
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }
}
